package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;
import org.apache.ibatis.annotations.Delete;

import java.util.List;

public interface ShoppingCartService {

    void addShoppingCart(ShoppingCartDTO shoppingCartDTO);

    /**
     * 查看购物车
     *
     * @return
     */
    List<ShoppingCart> showShoppingCaet();

    /**
     * 清空购物车
     */
    void cleanshoppingCart();
    /**
     * 清除一个商品
     */
    void subShoppingCart(ShoppingCartDTO shoppingCartDTO);


}
